package cn.yangliu.swagger2.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 杨柳
 * @date 2019-04-18
 */
@RequestMapping("${spring.swagger2.indexUrl:/swagger2}")
@Controller
public class Swagger2Controller {

    @RequestMapping
    public String view(){
        return "redirect:/doc.html";
    }

}
